<? global $FullUrl, $lg, $articles, $cat1, $cat2, $cat, $plpage; ?>

<div class="container_24 primary_content_wrap clearfix">
<div id="content" class="grid_17 right">
<div class="header-title">
  <?=(isset($_GET['cat1']) ? GetNameFromCat($_GET['cat1']):($act == 'payment'?'Hướng Dẫn Thanh Toán': ($act == 'add' ?'Thông tin đặt phòng': '')))?>
</div>
<? if ($articles) { ?>
<ul class="list-item">
<? for ($i=0; $i<count($articles); $i++) { 
			$art = $articles[$i];
			$img = GetImage($art['img']);
            $link = GetProductLink2($art, $lg); 
			$w = 164;
			$h = 164;
			$sizes = fixSize($img, $w, $h);
			$sizes_img_true = getimagesize($img);
			//print_r($sizes);
			
			$url_image = $img;
		?>
<article id="post-349" class="post-349 post type-post status-publish format-standard hentry category-spa post-holder cat-7-id">
	<div class="header-list-title">
    <h2><a href="<?=$link?>" title="<?=$art["name_$lg"]?>" rel="bookmark">
      <?=$art["name_$lg"]?>
      </a></h2>
    <!--<div class="post-meta"><span style="color:#FFF;">View: [
      <?=$art['view'];?>
      ]</span> by <span class="author"><a href="#" title="Posts by admin" rel="author">admin</a></span> on
      <time datetime="<?=$art['dated']?>">
        <?=$art['dated']?>
      </time>
      with <a href="#" class="comments-link" title="Comment">0 comments</a> </div>-->
    <!--.post-meta--> 
  </div>
  <figure class="featured-thumbnail"><span class="img-wrap"><a href="<?=$link?>">
    <p style="width:164px; height:164px; overflow:hidden;"><img src="<?=GetPHPThumb($url_image, 164,164);?>" class="attachment-post-thumbnail wp-post-image" alt="<?=$art["name_$lg"]?>" title="<?=$art["name_$lg"]?>" style="margin-top:<? echo ImageCenter($sizes['height'], $h)?>px;margin-left:<?=ImageCenterHorizontal($sizes['width'], 164)?>px" ></p>
    </a></span></figure>
  <div class="list-article">
    <div class="text-list">
      <?=$art["short_$lg"]?>
    </div>
    <div class="view-list"><img src="<?=$FullUrl?>/<?=CST_IMAGES?>/eye.png" height="20" alt="Lượt xem" />
    <?=$art['view'];?> <img src="<?=$FullUrl?>/<?=CST_IMAGES?>/date.png" height="20" alt="Ngày đăng" /> <?=$art['dated']?></div>
    <a href="<?=$link?>"><div class="detail-button"><img src="<?=$FullUrl?>/<?=CST_IMAGES?>/bam-xem.gif" width="89" height="28" /alt="Xem Chi Tiết"></div>
    </a> 
    </div>
</article>
<? } ?>
<?=$plpage?>
<? } else 
		echo '<div style="font-weight:bold; text-align:center; padding:30px; margin:0 auto; ">'.NO_NEWS.'</div>';
	?>
<!-- <div class="wp-pagenavi"> <span class="pages">Page 1 of 3</span><span class="current">1</span><a href="http://livedemo00.template-help.com/wordpress_38638/news/page/2/" class="page larger">2</a><a href="http://livedemo00.template-help.com/wordpress_38638/news/page/3/" class="page larger">3</a><a href="http://livedemo00.template-help.com/wordpress_38638/news/page/2/" class="nextpostslink">»</a> </div>--> 
<!-- Page navigation -->

</div>
<!--#content-->
<?php Template::UserControlTPL('CategoriesRight'); ?>
<!--sidebar-->
</div>
